// number类型，但是要排除NaN
const isNumber=val =>typeof val ==='number' && val===val;


console.log(typeof NaN);//number
NaN==NaN;//false
2===2;//true